console.log('-------------- 要修改库的打包方式 验证tree-shaking，需进入pkg目录 -------------- ');

const path = require('path');
module.exports = {
  entry: path.resolve(__dirname, 'index.js'),
  output: {
    path: path.resolve(__dirname, 'dist'),
    clean: true,
  },
  resolve: {
    extensions: ['.jsx', '.js'],
  },
  devtool: false,
  module: {
    rules: [],
  },
  mode: 'production',
  optimization: {
    runtimeChunk: true,
    splitChunks: {
      chunks: 'all',
    },
  },
  plugins: [],
};
